(CYGWIN) [USING_SH]: Disable mapping of file permissions to NTFS ACLs.
authorJason Rumney <jasonr@gnu.org>
Sun, 20 Jan 2008 23:17:10 +0000 (23:17 +0000)
committerJason Rumney <jasonr@gnu.org>
Sun, 20 Jan 2008 23:17:10 +0000 (23:17 +0000)
nt/gmake.defs

index e782c203e76ce89aa55f53e7368b6ecdd76fda49..6bc5e247886886c323c64a03a559d59b5655f44f 100644 (file)
@@ -99,6 +99,16 @@ sh_output := $(shell echo foo")
 ifeq "$(sh_output)" ""
 NEW_CYGWIN = 1
 endif
+
+# By default, newer versions of Cygwin mess with NTFS ACLs in an
+# attempt to emulate traditional posix file permissions. This can
+# cause bad effects, such as .exe files that are missing the
+# FILE_EXECUTE/FILE_GENERIC_EXECUTE permissions when they are created
+# with Cygwin commands that don't expect to be creating executable
+# files. Then when we later use a non-Cygwin program to create the
+# real .exe, the previous Cygwin defined ACL sticks.
+CYGWIN=nontsec
+export CYGWIN
 endif
 
 ALL_DEPS       = $^